package com.flow.demo.module.gd.controller.admin.activities.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import com.flow.demo.framework.excel.core.annotations.DictFormat;
import com.flow.demo.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 活动 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ActivitiesRespVO {

    @Schema(description = "自增id", requiredMode = Schema.RequiredMode.REQUIRED, example = "13640")
    @ExcelProperty("自增id")
    private Integer id;

    @Schema(description = "活动名称", example = "李四")
    @ExcelProperty("活动名称")
    private String name;

    @Schema(description = "活动规则")
    @ExcelProperty("活动规则")
    private String rules;

    @Schema(description = "活动状态")
    @ExcelProperty(value = "活动状态", converter = DictConvert.class)
    @DictFormat("gd_activitie_state") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String state;

    @Schema(description = "活动扫码背景图")
    @ExcelProperty("活动扫码背景图")
    private String bgImage;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}